package my.mark.mybaibaoxiang.eventDemo.easyEvent;

import java.util.EventListener;

/**
 * @author twotiger-wxm.
 * @date 2019-9-11.
 */
public class DoorNameListener implements EventListener {
    public void doorEvent(DoorEvent event) {
        Door door = (Door) event.getSource();
        System.out.println("I got a new name,named \"" + door.getName() + "\"");
    }
}
